package com.File;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;

public class FileUtilsTest {

    public static void main(String[] args) {
        //使用外部IOjar包
        File file = new File("hello.txt");
        File file1 = new File("hello66.txt");
        try {
            FileUtils.copyFile(file, file1);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
